<?php

namespace common\model;

use think\model\RelationModel;

class FrequentContactsModel extends RelationModel
{
    //自动验证
    protected $_validate = [
        ['chat_global_id', '', '', self::MUST_VALIDATE, 'require', self::MODEL_INSERT],//必须字段
        ['user_id', '', '', self::MUST_VALIDATE, 'require', self::MODEL_INSERT],//必须字段
        ['link_user_id', '', '', self::EXISTS_VALIDATE, 'integer', self::MODEL_INSERT],//必须字段
    ];
}
